﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWeb.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Langmauviet.vn
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var listVideoNoibat = (List<Video>)ViewData["listVideoNoibat"];
       var lVideoNew = (List<Video>)ViewData["listVideoNewWeb"];
       var vlistVideoXemNhieu = (List<Video>)ViewData["vlistVideoXemNhieu"];
       var lNews = (List<News>)ViewData["listNewsWeb"];
       var lImage = (List<Images>)ViewData["listImageWeb"];
       var lVideoHost = (List<Video>)ViewData["listVideoHostWeb"];
    %>
    <div class="container row-fluid">
        <div id="main-content">
            <div class="box box-feature">
                <div class="box-content box-clip">
                    <div class="vlist clearfix">
                        <div class="vhome-feature">
                            <div class="vhome-top-feature vextra">
                                <% if (!ReferenceEquals(lVideoNew, null))
                                   {
                                       Video v = lVideoNew.ElementAt(0);
                                %>
                                <a title="<%= v.Name %>" href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>" class="vlink">
                                    <div class="vthumb">
                                        <img alt="<%= v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                        <span class="vticker">01:32</span> <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại"
                                            data-cid="1726326"><i class="icon-time"></i></span>
                                    </div>
                                    <h3 class="max-line-2">
                                        <%= v.Name %></h3>
                                </a>
                                <% 
                                      }
                                %>
                            </div>
                            <div class="vhome-recent">
                                <p class="title">
                                    Xem nhiều</p>
                                <div class="nano has-scrollbar">
                                    <div class="sliderContent" tabindex="0" style="right: -17px;">
                                        <div class="vlist-single">
                                            <ul>
                                                <% if (!ReferenceEquals(vlistVideoXemNhieu, null))
                                                   {
                                                       foreach (Video v in vlistVideoXemNhieu)
                                                       { %>
                                                <li><a title="<%= v.Name %>" href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>">
                                                    <%= v.Name %></a> </li>
                                                <% }
                                                    } %>
                                            </ul>
                                        </div>
                                    </div>
                                    <div class="pane" style="opacity: 1; visibility: visible;">
                                        <div class="slider" style="height: 71px; top: 0px;">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="vhome-feature-alternative">
                            <ul class="vvertical">
                                <% if (!ReferenceEquals(lVideoNew, null))
                                   {
                                       for (int i = 1; i < lVideoNew.Count; i++)
                                       {
                                           Video v = lVideoNew.ElementAt(i);
                                %>
                                <li class="vitem vsmall"><a title="  <%= v.Name %>" href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>"
                                    class="vlink">
                                    <div class="vthumb">
                                        <img alt="  <%= v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                        <span class="vticker">07:45</span> <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại"
                                            data-cid="1726875"><i class="icon-time"></i></span>
                                    </div>
                                    <h4>
                                        <%= v.Name %></h4>
                                </a></li>
                                <% }
                                      } %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box clearfix">
                <div class="box-header">
                    <div class="box-tab row-fluid">
                        <ul>
                            <li><a title="Tin tức" href="/">Tin Mới</a></li>
                        </ul>
                    </div>
                </div>
                <div class="box-content box-clip">
                    <div class="vlist">
                        <div class="vlist-inner clearfix">
                            <ul class="clearfix">
                                <% if (!ReferenceEquals(lNews, null))
                                   {
                                       for (int i = 0; i < lNews.Count; i++)
                                       {
                                           News newse = lNews.ElementAt(i);
                                %>
                                <% if (i == 2 || i == 5)
                                   {
                                %>
                                <li class="vitem vlarge last">
                                    <% }
                                   else
                                   { %>
                                    <li class="vitem vlarge">
                                        <% } %>
                                        <a title="<%= newse.Title %>" href="/Tin-tuc/Chi-tiet/<%= newse.NewsId %>/<%=UIHelper.convertToUnSign(newse.Title) %>" class="vlink">
                                            <div class="vthumb">
                                                <img alt="<%= newse.Title %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=500&h=500&id=<%= newse.Icon %>">
                                                <!--  <span class="vticker">02:21</span> -->
                                                <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại" data-cid="1726768">
                                                    <i class="icon-time"></i></span>
                                            </div>
                                            <h4 class="max-line-2">
                                                <%= newse.Title %></h4>
                                        </a></li>
                                    <% }
                                    } %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box clearfix">
                <div class="box-header">
                    <div class="box-tab row-fluid">
                        <ul>
                            <li><a title="Ảnh Xinh" href="/">Ảnh Xinh</a></li>
                        </ul>
                    </div>
                </div>
                <div class="box-content box-clip">
                    <div class="vlist">
                        <div class="vlist-inner clearfix">
                            <ul class="clearfix">
                                <% if (!ReferenceEquals(lImage, null))
                                   {
                                       for (int i = 0; i < lImage.Count; i++)
                                       {
                                           Images img = lImage.ElementAt(i);
                                %>
                                <% if (i == 2 || i == 5)
                                   {
                                %>
                                <li class="vitem vlarge last">
                                    <% }
                                   else
                                   { %>
                                    <li class="vitem vlarge">
                                        <% } %>
                                        <a title="<%= img.Name %>" href="/Anh/Chi-tiet/<%= img.Icon %>/<%=UIHelper.convertToUnSign(img.Name) %>"
                                            class="vlink">
                                            <div class="vthumb">
                                                <img alt="<%= img.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= img.Icon %>">
                                                <!-- <span class="vticker">02:55</span>  <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại"
                                            data-cid="1726758"><i class="icon-time"></i></span> -->
                                            </div>
                                            <h4 class="max-line-2">
                                                <%= img.Name %></h4>
                                        </a>
                                        <% }
                                       } %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="box clearfix">
                <div class="box-header">
                    <div class="box-tab row-fluid">
                        <ul>
                            <li><a title="Giải trí" href="/">Video Hot</a></li>
                        </ul>
                    </div>
                </div>
                <div class="box-content box-clip">
                    <div class="vlist">
                        <div class="vlist-inner clearfix">
                            <ul class="clearfix">
                                <% if (!ReferenceEquals(lVideoHost, null))
                                   {
                                       for (int i = 0; i < lVideoHost.Count; i++)
                                       {
                                           Video v = lVideoHost.ElementAt(i);
                                %>
                                <% if (i == 2 || i == 5)
                                   {
                                %>
                                <li class="vitem vlarge last">
                                    <% }
                                   else
                                   { %>
                                    <li class="vitem vlarge">
                                        <% } %>
                                        <a title="<%=v.Name %>" href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>" class="vlink">
                                            <div class="vthumb">
                                                <img alt="<%=v.Name %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                                <span class="vticker">02:38</span> <span class="watch-later _watch_later " title="Đánh dấu chờ xem lại"
                                                    data-cid="1726821"><i class="icon-time"></i></span>
                                            </div>
                                            <h4 class="max-line-2">
                                                <%=v.Name %></h4>
                                        </a></li>
                                    <% }
                                     } %>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="sidebar">
            <!-- Start ads right_banner1-->
            <div class="box clearfix">
                <div class="box-header">
                    <h3>
                        Video nổi bật</h3>
                </div>
                <div class="box-content box-clip box-left">
                    <div class="vlist vrecent vscroll clearfix">
                        <ul>
                            <% if (!ReferenceEquals(listVideoNoibat, null))
                               {
                                   foreach (Video v in listVideoNoibat)
                                   { %>
                            <li class="vitem vsmall vvertical"><a class="vlink" href="/Video/Chi-tiet/<%= v.VideoId %>/<%= UIHelper.convertToUnSign(v.Name) %>"
                                title="<%= v.Name %>">
                                <div class="vthumb">
                                    <img src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                    <!--   <span class="vticker">15 clip</span> -->
                                </div>
                                <h4>
                                    <%= v.Name %></h4>
                            </a></li>
                            <% }
                               }
                            %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
